import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsArray, IsOptional, IsString } from 'class-validator';
import { CreateProcessTemplatePriceDto } from '../dto/create-process-template-price.dto';

export class ProcessTemplateEntity {
  @ApiProperty()
  @IsString()
  name: string;

  @ApiPropertyOptional()
  @IsOptional()
  @IsString()
  description?: string;

  @ApiProperty({
    isArray: true,
  })
  @IsArray()
  prices: CreateProcessTemplatePriceDto[];
}
